/*	Problem: http://codeforces.ru/problemset/problem/100/A
	  Verdict: Accepted
*/
int main()
{
        int n,k,n1;
        string str;
        str=Stdio.stdin->gets();
        sscanf(str,"%d %d %d",n,k,n1);

        if(n==n1 || k>=4)
                write("YES\n");
        else
                write("NO\n");
  return 0;
}